package com.xh.petdogexpert.sys.dto;

import java.util.List;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

public class Resource {
    private Integer id;

    private Integer pid;

    private String resource;

    private String status;
    
    private List<Resource> children;
    
    @JsonInclude(Include.NON_NULL)
    private String state;
    
    @JsonInclude(Include.NON_NULL)
    private Boolean checked;
    
    @JsonInclude(Include.NON_NULL)
    private String description;
    
    @JsonIgnore
    private String attribute2;
    @JsonIgnore
    private String attribute3;
    @JsonIgnore
    private String attribute4;
    @JsonIgnore
    private String attribute5;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getResource() {
        return resource;
    }

    public void setResource(String resource) {
        this.resource = resource == null ? null : resource.trim();
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }
    
    public List<Resource> getChildren() {
		return children;
	}
    
    public void setChildren(List<Resource> children) {
		this.children = children;
	}
    
    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description == null ? null : description.trim();
    }
    
    public Boolean getChecked() {
		return checked;
	}
    
    public void setChecked(Boolean checked) {
		this.checked = checked;
	}
    
    public String getState() {
		return state;
	}
    
    public void setState(String state) {
		this.state = state;
	}

    public String getAttribute2() {
        return attribute2;
    }

    public void setAttribute2(String attribute2) {
        this.attribute2 = attribute2 == null ? null : attribute2.trim();
    }

    public String getAttribute3() {
        return attribute3;
    }

    public void setAttribute3(String attribute3) {
        this.attribute3 = attribute3 == null ? null : attribute3.trim();
    }

    public String getAttribute4() {
        return attribute4;
    }

    public void setAttribute4(String attribute4) {
        this.attribute4 = attribute4 == null ? null : attribute4.trim();
    }

    public String getAttribute5() {
        return attribute5;
    }

    public void setAttribute5(String attribute5) {
        this.attribute5 = attribute5 == null ? null : attribute5.trim();
    }
}